/*楼层管理接口*/
import { get, post } from '@/utils/httpUtil'
import utils from '@/utils/utils'

const apis = {}

//楼层管理列表数据查询
apis.floorMessageList = formData =>{
    return get('/floorMessage/list', formData);
}
//根据id获取详情
apis.getDetail = id => {
	return get('/floorMessage/detail?id='+id);
}
//更新或保存
apis.submitForm = submitFormData => {
	let url = '/floorMessage/save';
    if(submitFormData.id){
        url = '/floorMessage/update';
    }
    return post(url, submitFormData);
}
export default apis